package br.com.daniele.bean;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * Alias para XStrean - "dest"
 * 
 * @author eduardo.pereira
 * 
 */
@Entity
public class Destinatario {

	private long id;
	private String CNPJ;
	private String xNome;
	private Endereco enderDest;
	private String IE;
	private String email;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCNPJ() {
		return CNPJ;
	}

	public String getxNome() {
		return xNome;
	}

	@OneToOne(fetch = FetchType.EAGER)
	public Endereco getEnderDest() {
		return enderDest;
	}

	public String getIE() {
		return IE;
	}

	public void setCNPJ(String cNPJ) {
		CNPJ = cNPJ;
	}

	public void setxNome(String xNome) {
		this.xNome = xNome;
	}

	public void setEnderDest(Endereco enderDest) {
		this.enderDest = enderDest;
	}

	public void setIE(String iE) {
		IE = iE;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
